package com.shrct.businessprocess.project.impl;

import com.shrct.businessprocess.project.RCParameters;
import com.shrct.businessprocess.project.proxy.RCParametersProxy;
import edu.fudan.mylang.pf.BaseModelObject;
import edu.fudan.mylang.pf.IObjectFactory;
import java.util.Date;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.hibernate.annotations.DiscriminatorOptions;

@Entity
@DiscriminatorValue("RCPARAMETERS_TYPE")
@DiscriminatorOptions(force = true)
@DiscriminatorColumn(length = 64)
@Table(name = "rcparameters")
public class RCParametersImpl extends BaseModelObject implements RCParameters {
  public RCParametersImpl() {
    super();
  }
  
  private Integer projectIdYear;
  
  public Integer getProjectIdYear() {
    return this.projectIdYear;
  }
  
  public RCParameters setProjectIdYear(final Integer projectIdYear) {
    this.projectIdYear = projectIdYear;
    return this;			
    
  }
  
  private Integer projectId;
  
  public Integer getProjectId() {
    return this.projectId;
  }
  
  public RCParameters setProjectId(final Integer projectId) {
    this.projectId = projectId;
    return this;			
    
  }
  
  private Integer orderIdYear;
  
  public Integer getOrderIdYear() {
    return this.orderIdYear;
  }
  
  public RCParameters setOrderIdYear(final Integer orderIdYear) {
    this.orderIdYear = orderIdYear;
    return this;			
    
  }
  
  private Integer orderId;
  
  public Integer getOrderId() {
    return this.orderId;
  }
  
  public RCParameters setOrderId(final Integer orderId) {
    this.orderId = orderId;
    return this;			
    
  }
  
  private Date orderDate;
  
  public Date getOrderDate() {
    return this.orderDate;
  }
  
  public RCParameters setOrderDate(final Date orderDate) {
    this.orderDate = orderDate;
    return this;			
    
  }
  
  private Integer nextProductSid;
  
  public Integer getNextProductSid() {
    return this.nextProductSid;
  }
  
  public RCParameters setNextProductSid(final Integer nextProductSid) {
    this.nextProductSid = nextProductSid;
    return this;			
    
  }
  
  public static RCParameters create(final IObjectFactory objectFactory) {
    com.shrct.businessprocess.project.RCParameters rCParameters = new com.shrct.businessprocess.project.impl.RCParametersImpl(
    );
    objectFactory.create(rCParameters);
    return rCParameters;			
    
  }
  
  public static RCParameters createRCParametersImpl(final IObjectFactory objectFactory, final Procedure1<RCParameters> init) {
    com.shrct.businessprocess.project.RCParameters rCParameters = new com.shrct.businessprocess.project.impl.RCParametersImpl(
    );
    objectFactory.create(rCParameters);
    init.apply(rCParameters);
    
    return rCParameters;			
    
  }
  
  public RCParametersProxy toProxy() {
    com.shrct.businessprocess.project.proxy.RCParametersProxy proxy = new com.shrct.businessprocess.project.proxy.RCParametersProxy();
    proxy.setId(this.getId());
    if(this instanceof edu.fudan.mylang.pf.INamedModelObject){
    	proxy.setName(((edu.fudan.mylang.pf.INamedModelObject)this).getEntityName());
    }
    return proxy;
    
  }
}
